Repository navigation
Every pull request of a multi-repository run gets its own CI fix rounds - #980
Merged
Merged
Conversation
A run that opened pull requests in several repositories read CI on each and, when any was red, finished with the pull requests open. Each pull request now has its own entry in a CI ledger (common::repo_ci): a red one gets the same CI fix round a single repository takes (the mode diagnosis, then run_fix_round on its branch), rounds go on while the failure changes and stop as CoderHelm's own problem past the bound, a pull request that builds on another repository's waits while that one is red or running, and the run ends only when every pull request is settled. A person is named only for a typed person-only reason. Incident xu_every_repo_gets_its_ci_rounds.
coderhelm
Bot
dismissed
their stale review
December 5, 2026 09:04
Superseded by CoderHelm's latest review
Contributor
|
💚 Post-merge health check passed: the deploy of
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A run that opened pull requests in several repositories read CI on each and, when any was red, finished with the pull requests open and the red ones left as they were. Each pull request of such a run now gets its own CI fix rounds, and the run ends only when every pull request is settled.
Changes
common::repo_ci(new): a CI ledger with one entry per pull request of the run (rounds, rounds in a row that met the same failure, stop reason, typed person-only hold).nextdecides the next step: a round on one red pull request, wait, done, or settled. A pull request builds on every repository the plan orders before its own: it waits while that one is red or its CI runs, and a provider whose rounds stopped never holds the rest. Pull requests with no dependency between them go independently, the one with the fewest rounds first.beginapplies the single repository loop's own bound (run_round::ci_cycle_goes_on): a round followed by the same failure made no progress, and two such rounds in a row stop that pull request's rounds as CoderHelm's own problem.resume_multi_repo(worker): reads every pull request's head, then runs the ledger's step. A red pull request gets the mode diagnosis first (mode_cause,mode_repair::on_red), then the CI fix round every fix takes (run_fix_round) on its branch. The round is given the failing checks, their logs, the shared fix rules (CI_FIX_RULES, now one constant for both loops) and the run's other pull requests. A parked round runs again for the pull request it belongs to. A stop records an own problem, writes what fails on that pull request, and ends the run with the typed stop (stop_red) once everything is settled. When every pull request is green, each goes through the ready decision in the plan's order and the run completes.person_only::admit. The note then names that reason, next to every other pull request having gone green.run_fix_roundnow saves a CI round's account so the reading after it can use it. The record's primary pull request fields are put back after a round on another pull request writes its own.xu_every_repo_gets_its_ci_roundswith its page.Verification
cargo fmt --all --check,rustfmt --checkon incidents: clean.cargo clippy -p common -p worker -p gateway --all-targets -- -D warnings: clean.cargo test -p common -p worker -p gateway: all pass.brand_spelling.py,domain_examples.py: pass.resume_multi_repowired to the ledger, the mode diagnosis, the shared round and the typed stop.